package com.example.music.shape

import kotlin.math.sqrt

/**
 * 正三角形
 */
class RegularTriangle : IShape {
    override fun area(length: Double): Double {
        return 0.25 * sqrt(3.0) * length * length
    }
}